\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b0\i0\ul0\fs28\fc0 make pswrap and C++ files\
\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 Q: How do I integrate .psw files with C++ files? In my Makefile.preamble, I changed the compiler to cc++. Since
\b pswrap
\b0 generates 'C' code, the C++ compiler will not work with .c files generated by
\b pswrap
\b0 . What can I do?\
\
A: You need to create a
\b Makefile.postamble
\b0 and tell
\b make
\b0 to use
\b cc
\b0 when compiling pswrap'ed files. See the example below: \
\b0 after the compilation, so that in subsequent makes, the
\b c++
\b0 compiler will not try to compile these files.\
\
In general, you can override the default
\b make
\b0 rules to suit your environment. For example, if you only have one C++ file (e.g. foo.c), add the following to your Makefile.postamble rather than overriding the CC directive in the Makefile.preamble:\